package com.cnyz.service;

import com.cnyz.base.PageResponse;
import com.cnyz.dto.CourseDto;
import com.cnyz.vo.CourseVo;
import com.cnyz.vo.UserVo;

import java.util.List;

public interface CourseService {
    public Long insertCourse(CourseDto courseDto);
    public void updateCourse(CourseDto courseDto);
    public void deleteCourse(Long courseID);

    public List<CourseVo>getCourseByTeacherID(Long teacherID);
    public List<CourseVo>getCourseByStudentID(Long studentID);

    public void addStudentToCourse(Long courseID, Long studentID);
    public PageResponse<UserVo>getStudentByCourseID(Integer pageNum, Integer pageSize, Long courseID);
    public boolean isStudentInCourse(Long courseID, Long studentID);
    public void removeStudentFromCourse(Long courseID, Long studentID);
    public PageResponse<UserVo>getMembersByName(Integer pageNum, Integer pageSize, Long courseID,String username);
}
